<?php

namespace app\common\business;

use app\common\lib\Time;
use app\common\lib\Str;
use think\facade\Cache;
use think\Exception;

class Classes
{
    public $classesObj = null;

    public function __construct()
    {
        $this->classesObj = new \app\common\model\Classes();
    }

    public function classes()
    {
       return $this->classesObj->classes();
    }

    public function add_classes($data)
    {
        $this->classesObj->save($data);
    }

    public function edit_classes($data)
    {
        $this->classesObj::update($data);
    }

    public function del_classes($id)
    {
        $this->classesObj::destroy($id);;
    }
}